package io.kiki.sba.registry.server.shared.resource;

import io.kiki.sba.registry.server.shared.env.ServerEnv;
import io.kiki.sba.registry.util.StringFormatter;

import javax.ws.rs.GET;
import javax.ws.rs.Path;

@Path("/")
public class VersionResource {
    @GET
    @Path("version")
    public String version() {
        return StringFormatter.format("release properties: \t\t {}", ServerEnv.getReleaseProps(ServerEnv.GIT_PROPS_FILE));
    }
}
